/*-------------------------------------------------------------------------
 *
 * kwlist.h
 *
 * The keyword list is kept in its own source file for possible use by
 * automatic tools.  The exact representation of a keyword is determined
 * by the OP_KEYWORD macro, which is not defined in this file; it can
 * be defined by the caller for special purposes.
 *-------------------------------------------------------------------------
 */

/* there is deliberately not an #ifndef KWLIST_H here */

/*
 * List of keyword (name, token-value, category) entries.
 *
 * !!WARNING!!: This list must be sorted by ASCII name, because binary
 *		 search is used to locate entries.
 */

/* name, value, category */
OP_KEYWORD("all", ALL, RESERVED_KEYWORD)
OP_KEYWORD("and", AND, RESERVED_KEYWORD)
OP_KEYWORD("as", AS, RESERVED_KEYWORD)
OP_KEYWORD("asc", ASC, RESERVED_KEYWORD)
OP_KEYWORD("between", BETWEEN, TYPE_FUNC_NAME_KEYWORD)
OP_KEYWORD("by", BY, UNRESERVED_KEYWORD)
OP_KEYWORD("default", DEFAULT, RESERVED_KEYWORD)
OP_KEYWORD("delete", DELETE_P, UNRESERVED_KEYWORD)
OP_KEYWORD("desc", DESC, RESERVED_KEYWORD)
OP_KEYWORD("distinct", DISTINCT, RESERVED_KEYWORD)
OP_KEYWORD("false", FALSE_P, RESERVED_KEYWORD)
OP_KEYWORD("from", FROM, RESERVED_KEYWORD)
OP_KEYWORD("group", GROUP_P, RESERVED_KEYWORD)
OP_KEYWORD("having", HAVING, RESERVED_KEYWORD)
OP_KEYWORD("insert", INSERT, UNRESERVED_KEYWORD)
OP_KEYWORD("is", IS, TYPE_FUNC_NAME_KEYWORD)
OP_KEYWORD("isnull", ISNULL, TYPE_FUNC_NAME_KEYWORD)
OP_KEYWORD("large", LARGE_P, UNRESERVED_KEYWORD)
OP_KEYWORD("like", LIKE, TYPE_FUNC_NAME_KEYWORD)
OP_KEYWORD("local", LOCAL, UNRESERVED_KEYWORD)
OP_KEYWORD("not", NOT, RESERVED_KEYWORD)
OP_KEYWORD("notnull", NOTNULL, TYPE_FUNC_NAME_KEYWORD)
OP_KEYWORD("null", NULL_P, RESERVED_KEYWORD)
OP_KEYWORD("operator", OPERATOR, UNRESERVED_KEYWORD)
OP_KEYWORD("or", OR, RESERVED_KEYWORD)
OP_KEYWORD("order", ORDER, RESERVED_KEYWORD)
OP_KEYWORD("returning", RETURNING, RESERVED_KEYWORD)
OP_KEYWORD("select", SELECT, RESERVED_KEYWORD)
OP_KEYWORD("set", SET, UNRESERVED_KEYWORD)
OP_KEYWORD("table", TABLE, RESERVED_KEYWORD)
OP_KEYWORD("temp", TEMP, UNRESERVED_KEYWORD)
OP_KEYWORD("temporary", TEMPORARY, UNRESERVED_KEYWORD)
OP_KEYWORD("time", TIME, COL_NAME_KEYWORD)
OP_KEYWORD("timestamp", TIMESTAMP, COL_NAME_KEYWORD)
OP_KEYWORD("true", TRUE_P, RESERVED_KEYWORD)
OP_KEYWORD("update", UPDATE, UNRESERVED_KEYWORD)
OP_KEYWORD("using", USING, RESERVED_KEYWORD)
OP_KEYWORD("values", VALUES, COL_NAME_KEYWORD)
OP_KEYWORD("where", WHERE, RESERVED_KEYWORD)